* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 1200px;
    height: 100%;
    background: #f1f1f1;
}

nav {
    width: 1200px;
    margin: 0 auto;
    height: 50px;
    background: #fff;
    border-radius: 5px;
    display: flex;
    justify-content: space-around;
}

nav div {
    height: 50px;
    line-height: 50px;
    font-size: 14px;
    cursor: pointer;
}

.active {
    border-bottom: 2px solid red;
    color: red;
}

nav div:hover {
    color: red;
}

main {
    width: 1200px;
    margin: 10px auto;
    display: flex;
    flex-wrap: wrap;
}

.goods {
    width: 224px;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    margin-right: 16px;
}

.goods_img {
    width: 100%;
}

.goods_img img {
    width: 100%;
}

.goodsPrice {
    margin: 5px 0;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: red;
}

.oltprice {
    font-size: 13px;
    color: #919191;
    margin-left: 10px;
    text-decoration: line-through;
}

.goodsName {
    width: 100%;
    font-size: 14px;
    color: #3d3d3d;
    line-height: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.goods_msg{
    display: flex;
    font-size: 13px;
    margin-top: 5px;
    color: #919191;
    justify-content: space-between;
}
.goods:hover{
    box-shadow: 0 0 10px #dfdfdf;
}
.nodata{
    width: 100%;
    text-align: center;
    margin: 100px 0;
}
.nodta img{
    width: 200px;
}
.nodata p {
    font-size: 14px;
    color: #919191;
}